<!DOCTYPE html>
<html devsite>
  <head>
    <title>TensorFlowLiteSwift Framework Reference</title>
    <link rel="stylesheet" href="../css/jazzy.css" />
    <meta charset='utf-8'>
  </head>
  <body>
    <div class="content-wrapper">
      <article class="main-content">
        <section>
          <section class="section">
            <h1>MetalDelegate</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">final</span> <span class="kd">class</span> <span class="kt">MetalDelegate</span> <span class="p">:</span> <span class="kt"><a href="../Protocols/Delegate.html">Delegate</a></span></code></pre>

                </div>
              </div>
            <p>A delegate that uses the <code>Metal</code> framework for performing TensorFlow Lite graph operations with
GPU acceleration.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    This is an experimental interface that is subject to change.

</div>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift13MetalDelegateC7optionsAC7OptionsVvp"></a>
                    <a name="//apple_ref/swift/Property/options" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsAC7OptionsVvp">options</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The configuration options for the <code>MetalDelegate</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">options</span><span class="p">:</span> <span class="kt"><a href="../Classes/MetalDelegate/Options.html">Options</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift13MetalDelegateC01cF0Xevp"></a>
                    <a name="//apple_ref/swift/Property/cDelegate" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift13MetalDelegateC01cF0Xevp">cDelegate</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">cDelegate</span><span class="p">:</span> <span class="kt">CDelegate</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift13MetalDelegateC7optionsA2C7OptionsV_tcfc"></a>
                    <a name="//apple_ref/swift/Method/init(options:)" class="dashAnchor"></a>
                    <h3><a class="token" href="#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsA2C7OptionsV_tcfc">init(options:)</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates a new instance configured with the given <code><a href="../Classes/MetalDelegate.html#/s:19TensorFlowLiteSwift13MetalDelegateC7optionsAC7OptionsVvp">options</a></code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">options</span><span class="p">:</span> <span class="kt"><a href="../Classes/MetalDelegate/Options.html">Options</a></span> <span class="o">=</span> <span class="kt"><a href="../Classes/MetalDelegate/Options.html">Options</a></span><span class="p">())</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>options</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Configurations for the delegate. The default is a new instance of
<code><a href="../Classes/MetalDelegate/Options.html">MetalDelegate.Options</a></code> with the default configuration values.</p>
                                </div>
                              </td>
                            </tr>                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:19TensorFlowLiteSwift13MetalDelegateC7OptionsV"></a>
                    <a name="//apple_ref/swift/Struct/Options" class="dashAnchor"></a>
                    <h3><a class="token" href="../Classes/MetalDelegate/Options.html">Options</a></h3>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Options for configuring the <code><a href="../Classes/MetalDelegate.html">MetalDelegate</a></code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="objc">
                          <p class="aside-title-objc">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Options</span> <span class="p">:</span> <span class="kt">Equatable</span><span class="p">,</span> <span class="kt">Hashable</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>          </section>
        </section>
      </article>
    </div>
  </body>
</html>
